import java.util.*;

public class PerceptronTest {
    public static void main(String[] args) throws Exception {
        PerceptronDataSet data = new PerceptronDataSet(3);
        data.addData(new double[]{2,2,2}, 1);
        data.addData(new double[]{4,3,5}, 1);
        data.addData(new double[]{0.5,0.5,0.1}, -1);
        Perceptron p = new Perceptron(3, data);
        p.setLearningRate(1).train();
        System.out.println("Weight: " + Arrays.toString(p.getWeight()));
        System.out.println("Bias: " + p.getBias());

    }
}
